package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
@Getter
@Setter
public class PrivateMessage extends  BaseDomain{

    private Long userId;

    private Long friendId;

    private Long senderId;

    private Long receiverId;
    //messageType：消息类型   1：普通消息 2：系统消息
    private Long messageType;

    private String messageContent;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date sendTime;
     //status：消息状态     1：未读 2：已读 3：删除
    private Long status;

    private User user;
}